<?php
/**
 *  Do not try to install platform into the server Document Root sub directory
 */
$docRoot = $_SERVER['DOCUMENT_ROOT'];

$len = strlen($docRoot);

// should be without last slash
if($docRoot[$len-1]=='/')
	$docRoot = substr($docRoot , 0 , -1);
	
$language = 'eng';
return array(		
		'docroot' => $docRoot ,  
		'version' => '0.0.3' , 
		/*
		 * Development mode
		 */
		'development' => true , 
		/*
		 * Development version (used by use_orm_build_log)
		 */
		'development_version'=>'0.1',
		/*
		 * Write SQL commands when updating Database structure. 
		 * It can help to fugure out if there have been renaming operations.
		 * Please note that renaming operations in ORM interface cause loss of data 
		 * when synchronizing to another server, so it's better to use SQL log
		 */
		'use_orm_build_log'=>true,
		/*
		 * ORM SQL logs path 
		 */
		'orm_log_path'=>$docRoot.'/.log/orm/',
		/*
		 * ORM system object used as links storage
		 */
		'orm_links_object'=>'links',
		/*
		 * File uploads path
		 */
		'uploads' => $docRoot . '/media/' , 
		/*
		 * Admin panel URL
		 */
		'adminPath' => 'adminarea' ,  
		/*
		 * Templates directory
		 */
		'templates' => $docRoot . '/templates/' , 
		/*
		 * Url paths delimiter  "_" , "-" or "/"
		 */
		'urlDelimetr' => '/',
		'urlExtension' => '.html' , 
		/*
		 * System language
		 * Please note. Changing the language will switch ORM storage settings.
		 */
		'language' => $language , 
		'sault' => 'ThSc-9086' , 
		'timezone' => 'Europe/Moscow' , 
		'jsCacheUrl' => '/js/cache/' , 
		'jsCachePath' => $docRoot . '/js/cache/' , 
		'jsCacheSysUrl' => '/js/syscache/' , 
		'jsCacheSysPath' => $docRoot . '/js/syscache/' , 
		 /* 
		  * vc_clear_on_delete - Clean the object versions history when deleting. Recommended to set "false" 
          * In spite of deleted objects it can be restored from a previous control system revision. 
          * If set to "true" object and its history will be totaly removed. However, 
          * this allows you to get rid of redundant records in the database
		  */
		'vc_clear_on_delete' => false,
		/*
		 * Main directory for config files
		 */
		'configs' => $docRoot . '/system/config/' ,  // configs path
		/*
		 * ORM configs directory
		 */
		'object_configs' => $docRoot . '/system/config/'.$language.'/objects/' , 
		/*
		 * Report configs directory
		 */
		'report_configs' => $docRoot . '/system/config/reports/' ,  
		/*
		 * Frontend modules config file
		 */
		'backend_modules'=> $docRoot . '/system/config/'.$language.'/backend_modules.php', 
		/*
		 * Backend modules config file
		 */
		'frontend_modules'=>$docRoot . '/system/config/'.$language.'/frontend_modules.php',
		 /*
		  * Dictionary configs directory
		  */
		'dictionary'=>$docRoot . '/system/config/'.$language.'/dictionary/',
		 /*
		  * Backups directory
		  */
		'backups' => $docRoot . '/.backups/' ,
		'tmp' => $docRoot . '/.tmp/' ,  
		'mysqldumpExecutable' => 'mysqldump' , 
		'zipArchiving' => true , 
		'use_cache' => false ,  // false/file/memcached
		'themes' => $docRoot . '/templates/public/' , 
		'usersOnline' => false, //Collect users online info,
		// Autoloader config
		'autoloader' => array(
			 // Paths for autoloading
			 'paths'=> array(
				$docRoot . '/system/app',
				$docRoot . '/system/library',
			 ),
			 // Use precompiled code packages
			 'usePackages' => false,
		     // Use class map (Reduce IO load during autoload)
			 'useMap' => false,
			 // Class map file path
			 'map' => $docRoot . '/system/config/class_map.php',
			 // Packages config path
			 'packagesConfig'=>	$docRoot . '/system/config/packages.php',				  
		)
);